home *** CD-ROM | disk | FTP | other *** search
/ PCNet 1998 June / PCnet Haziran 1998.iso / Internet / Tools / ANJAVA10.ZIP / DATA1.CAB / Program_Executable_Files / Applet / flag / anflag.txt < prev    next >
Encoding:
Text File  |  1998-04-23  |  6.7 KB  |  170 lines

  1.  
  2.           Anfyflag 2.1 - Copyright (C) by Fabio Ciucci 1996/98
  3.  
  4.  
  5. This applet can generate and animate in realtime a waving flag.
  6. The flags of 34 nations are supported.
  7. If the flag you are searching for is not supported by this applet,
  8. please check the new FlagLoad aplet, that can load any GIF/JPG flag.
  9. Remember that are needed both Anflag.class , Lware.class and anfy.class.
  10. You must upload these 3 .class files and insert the <applet> tag on your
  11. html document to add this applet to your page.
  12. This applet is fully parametrized, so you can change flag setting the
  13. one of your nations, and change the intensity and speed of wind.
  14. Here an example of what you have to write in the html (the things anfter
  15. the ; are comments with min-max values acceptet):
  16.  
  17.  
  18. <applet code="AnFlag.class" width=167 height=117>  ; Name, Width, Height
  19. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  20. <param name=regcode value="NO">         ; Register code (if you have it)
  21. <param name=reglink value="NO">         ; URL where go optionally when clicked
  22. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  23. <param name=regframename value="_blank"> ; Name of new frame for reglink
  24. <param name=statusmsg value="flag applet">  ; Statusbar message
  25. <param name=res value="1">             ; Resolution (1-8)
  26. <param name=backR value="0">           ; RED comp. of backg. color (0-255)
  27. <param name=backG value="0">           ; GREEN comp. of backg. color (0-255)
  28. <param name=backB value="60">          ; BLUE comp. of backg. color (0-255)
  29. <param name=pattern value="8">         ; Type of drawing pattern (1-8)
  30. <param name=speed value="3">           ; Speed of wind
  31. <param name=curve value="3">           ; Curve level (1-5)
  32. <param name=wind value="8">            ; Wind intensity (0-20)
  33. <param name=nation value="1">          ; Nation (1-34)
  34. <param name=textscroll value="flagscr.txt"> ; File for scrolltext or "NO"
  35. <param name=textoffset value="140">         ; Txtscroll y offset
  36. <param name=textspeed value="1">          ; Txtscroll speed
  37. <param name=textfont value="Arial">       ; Txtscroll font name
  38. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  39. <param name=textsize value="24">          ; Txtscroll font size
  40. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  41. <param name=TextColR value="200">         ; Txtscroll color (red component)
  42. <param name=TextColG value="255">         ; Txtscroll color (green component)
  43. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  44. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  45. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  46. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  47. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  48. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  49. <param name=TextSineAmp value="0">        ; Txtscroll sineshape amplitude        
  50. <param name=TextSineSpd value="0">        ; Txtscroll sineshape movement
  51. <param name=TextSineAngle value="0">      ; Txtscroll sineangle / pixel  
  52. <param name=memdelay value="1000">        ; Memory deallocation delay
  53. <param name=priority value="3">           ; Task priority (1..10)
  54. <param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
  55. Sorry, your browser doesn't suppor Java.  ; Message for no java browsers.
  56. </applet>                                 ; End of applet tag
  57.  
  58.                              ---------
  59.  
  60.  
  61. Here detailed instructions about how to change parameters:
  62.  
  63.  
  64. The credits parameter can't be changed otherwise the applet will not work.
  65.  
  66. To activate the reg parameters read the shareware registration notes.
  67. In the "regcode" parameter you have to place the registration code you
  68. purchase from the author. If it is correct and the applet is run from the
  69. registered domain name, you can use "reglink" parameter, where you can specify
  70. an URL where bring user when the applet is clicked.
  71. If you set to "YES" regnewframe, you can specify a frame where load the
  72. reglink:
  73.  
  74. "_blank"  : To load the link in a new blank unnamed browser window.
  75. "_self"   : To load the link into the same window the applet occupies.
  76. "_parent" : To load the link into the immediate FRAMESET parent.
  77. "_top"    : To load the link into the top body of the window.
  78.  
  79. Otherwise the frame name, for example "myframe1".
  80.  
  81. The parameter res is the resizer, but I think in this applet the best value
  82. is 1, because enlarging screen cause worst and slower effect.
  83.  
  84. You can change the background colour for best results over your web page,
  85. the RGB values are same as HTML tags, but in decimal values.
  86.  
  87. The style of painting can be changed with the parameter "pattern":
  88.  
  89. 1 = small dots
  90. 2 = double dots
  91. 3 = stars
  92. 4 = stars with central hole
  93. 5 = triangles
  94. 6 = triple dots
  95. 7 = triple dots dithered 1
  96. 8 = triple dots dithered 2
  97.  
  98. The "speed" parameter will control speed of effect.
  99.  
  100. The "curve" level will change the Y perturbation intensity.
  101.  
  102. The "wind" value will change the metereologic situation: 0 = no waving,
  103. and 20 = uragan.
  104. Be careful... you have to manually set the width and height in <applet>
  105. tag, following this table:
  106.  
  107. wind=0    ->    width=151 height=101
  108. wind=1    ->    width=153 height=103
  109. wind=2    ->    width=155 height=105
  110. wind=3    ->    width=157 height=107
  111. wind=4    ->    width=159 height=109
  112. wind=5    ->    width=161 height=111
  113. wind=6    ->    width=163 height=113
  114. wind=7    ->    width=165 height=115
  115. wind=8    ->    width=167 height=117
  116. wind=9    ->    width=169 height=119
  117. wind=10   ->    width=171 height=121
  118. wind=11   ->    width=173 height=123
  119. wind=12   ->    width=175 height=125
  120. wind=13   ->    width=177 height=127
  121. wind=14   ->    width=179 height=129
  122. wind=15   ->    width=181 height=131
  123. wind=16   ->    width=183 height=133
  124. wind=17   ->    width=185 height=135
  125. wind=18   ->    width=187 height=137
  126. wind=19   ->    width=189 height=139
  127. wind=20   ->    width=191 height=141
  128.  
  129. I am sorry of this, but browsers does not resize() the applet.
  130.  
  131. The most important parameter is: "nation". The applets supports 34 flags
  132. of 34 nations, that you can specify with a number. Here the list:
  133.  
  134.  1 = Italy
  135.  2 = Spain
  136.  3 = France
  137.  4 = Ireland
  138.  5 = Austria
  139.  6 = Germany
  140.  7 = Netherlands (Holland)
  141.  8 = Belgium
  142.  9 = Luxembourg
  143. 10 = Sweden
  144. 11 = Norway
  145. 12 = Iceland
  146. 13 = Groenland
  147. 14 = Denmark
  148. 15 = Finland
  149. 16 = Poland
  150. 17 = Hungary
  151. 18 = Switzerland
  152. 19 = South Africa
  153. 20 = Russia
  154. 21 = Japan
  155. 22 = Israel
  156. 23 = Greece
  157. 24 = Usa
  158. 25 = Canada
  159. 26 = Australia
  160. 27 = New Zealand
  161. 28 = United Kingdom (England)
  162. 29 = Argentina
  163. 30 = Peru'
  164. 31 = Venezuela
  165. 32 = Mexico
  166. 33 = Brazil
  167. 34 = Colombia
  168.  
  169.  
  170.